﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Automted_Bank_teller.DB_layer
{
    class backUpProcess : DatabaseConnection
    {
        public bool Process_Back_up()
        {

            cmd.CommandText = @"BACKUP DATABASE [C:\Users\Mostafa\Documents\Visual Studio 2012\Projects\Automted Bank teller\Automted Bank teller\Bank_Database.mdf] TO DISK = 'C:\Users\Mostafa\Documents\Visual Studio 2012\Projects\Automted Bank teller\Automted Bank teller\backup.bak'";
            cmd.ExecuteNonQuery();
            return true;

        }
    }
}
